import request from "@/utils/request";
import type {AjaxResult,page} from "@/utils/request"
const base = '/base/problemType'
/**
 * 获取公告
 * @returns Promise
 */
export const getAnnouncementList = (page?:page) : Promise<AjaxResult> => {
    return request({
        url: `/base/announcement/list`,
        method: 'get',
        params:page
    })
}

/**
 * 获取公告详情
 * @returns Promise
 */
export const getAnnouncement = (id?:string) : Promise<AjaxResult> => {
    return request({
        url: `/base/announcement/${id}`,
        method: 'get',
    })
}
